Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | (function ($, app) { |
||
10 | function showLoadingIndicators(event) { |
||
11 | if (event.isDefaultPrevented()) { |
||
12 | return; |
||
13 | } |
||
14 | var target = $(event.target).data('pjax-container'); |
||
15 | |||
16 | if (target == app.ROOT_CONTAINER_NAME) { |
||
17 | $('#ajax-loading').fadeIn(1000); |
||
18 | } else { |
||
19 | var loading = $('<div class="contentLoading"><div class="img"></div></div>'); |
||
20 | loading.hide(); |
||
21 | $(event.target).css('position', 'relative'); |
||
22 | $(event.target).append(loading); |
||
23 | loading.fadeIn(500); |
||
24 | } |
||
25 | } |
||
26 | |||
37 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.